﻿using System;
using UnityEngine;

namespace RootMotion
{
	// Token: 0x020000FB RID: 251
	public static class Warning
	{
		// Token: 0x0600071E RID: 1822 RVA: 0x00006976 File Offset: 0x00004B76
		public static void Log(string message, Warning.Logger logger, bool logInEditMode = false)
		{
			if (!logInEditMode && !Application.isPlaying)
			{
				return;
			}
			if (Warning.logged)
			{
				return;
			}
			if (logger != null)
			{
				logger(message);
			}
			Warning.logged = true;
		}

		// Token: 0x0600071F RID: 1823 RVA: 0x000069A7 File Offset: 0x00004BA7
		public static void Log(string message, Transform context, bool logInEditMode = false)
		{
			if (!logInEditMode && !Application.isPlaying)
			{
				return;
			}
			if (Warning.logged)
			{
				return;
			}
			Debug.LogWarning(message, context);
			Warning.logged = true;
		}

		// Token: 0x04000677 RID: 1655
		public static bool logged;

		// Token: 0x020000FC RID: 252
		// (Invoke) Token: 0x06000721 RID: 1825
		public delegate void Logger(string message);
	}
}
